<div class="pad-10" >
    
    <div class="navigate">
		<h1>地址列表</h1>		

            <span class="ui-button ui-button-morange fr">
                    <a class="ui-button-text fr" href="/index.php/Admin/UserAddress/add">地址添加</a>
            </span>
  	</div>

    <div class="explain-col">
        <form id="form_member" action="/index.php/Admin/UserAddress/" method="get">
            &nbsp;查询日期:

            <input type="text" class="Wdate tc" id="begin" name="begin_time" onclick="javascript:WdatePicker()" readonly="readonly" value="{$begin_time}" />
            至
            <input type="text" class="Wdate tc" id="end" name="end_time" onclick="javascript:WdatePicker()" readonly="readonly" value="{$end_time}" />

            &nbsp;
            查询条件
            <select name="search" id="search" style="width:80px;">
                <option value="">不限</option>
                <volist name="address_search" id="s">
                    <option value="{$s.item}"<if condition="$s['item'] eq $search"> selected</if>>{$s.name}</option>
                </volist>
            </select>

            <input type="text" name="keywords" value="{$keywords}" />
            <input type="submit" id="btnSearch" class="button" value="搜索" />
        </form>
    </div>


    <div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th style="font-size:12px;">编号</th>
                <th>收货人</th>
                <th>收货地址</th>
                <th>手机</th>
                <th>状态</th>
                <th>管理员</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
        </thead>
    	<tbody>
        <volist name="address" id="a" >
        <tr>
        	<td align="center">{$a.id}</td>
        	<td align="center">{$a.consignee}</td>
        	<td align="center">{$a.address}</td>
        	<td align="center">{$a.mobile_phone}</td>
            <td align="center">
	            <if condition="$a.disabled eq 1">
					<span class="color-red">禁用</span>
				<else />
					<span class="color-green">启用</span>
				</if>
            </td>
            <td align="center">{$a.real_name}</td>
            <td align="center">{$a.created}</td>            
            <td align="center">
            	<a href="/index.php/Admin/UserAddress/detail?id={$a.id}" target="_self">编辑</a>
            </td>
        </tr>
        </volist>
    	</tbody>
    </table>
    
    <div class="btn">
		<include file="Common:pager" />
    </div>
    
    </div>
</div>

<script type="text/javascript" src="/Js/WdatePicker.js"></script>
<script type="text/javascript" src="/Js/common.js"></script>